package com.leha.forum.lehare.service;

import com.leha.forum.lehare.entity.Permission;
import com.leha.forum.lehare.entity.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【role_permission】的数据库操作Service
* @createDate 2025-04-15 21:44:28
*/
public interface RolePermissionService extends IService<RolePermission> {
    boolean deleteByRoleId(Integer roleId);

    boolean deleteByPermissionId(Integer permissionId);

    List<Permission> getRolePermissions(Integer roleId, PermissionService permissionService);

    boolean bindPermission(Integer roleId, Integer permissionId);

    boolean unbindPermission(Integer roleId, Integer permissionId);
}
